<%@ page contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib  uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib  uri="http://www.springframework.org/security/tags" prefix="sec" %>
<%@ taglib  uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%@ include file="/jsp/commons/headfiles-jquery.jsp" %>
</head>
<body>
<h4>${param.year}年${param.month}月 - 报表结存日期设置</h4>
<form class="well">
    <input name='year'   value='${param.year}' type="hidden"/>
    <input name='month'  value='${param.month}' type='hidden' />
	<label>结存日</label>
 	<input class='datepicker' name='lastDay'  readonly  />
 	
 	<label>起始日</label>
 	<input class='datepicker' name='firstDay' readonly  />
 	<br>
 	<button type="button" class="btn" onclick='saveDay()'>保存</button>
 	<button type="button" onclick='window.close();'>关闭</button>
</form>
<script type="text/javascript">
$(function(){
	$(".datepicker").datepicker();
});
function saveDay(){
	
	var data = $('form.well').serialize();
	$.post('arm-daliy-product-reporter!setresetday',data,function(){
		alert('设置完毕');
	});
    
}
</script>
</body>
</html>